class Car < ActiveRecord::Base
  before_create :upcase_plate_number
  

protected
  def upcase_plate_number
    self.plate_number = self.plate_number.upcase
  end
end
